import babel from 'rollup-plugin-babel'
import resolve from 'rollup-plugin-node-resolve'
import json from 'rollup-plugin-json'

export default {
	entry: './src/index.js',
	format: 'umd',
	dest: "./dist/index.js",
	moduleName: 'watch-route',
	plugins: [
		json(),
		// resolve(),
		babel({
			runtimeHelpers: true,
			externalHelpers: true,
			exclude: ['node_modules/**'],
		}),
	],
	// sourceMap: true,
}